package com.pucong.gitee.database.backup.common.selfenum;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 删除枚举类
 * @author chenjinkun
 * @company www.louddt.com
 * @create 2020-06-10
 */
@ApiModel("删除枚举类")
public enum IsDelEnum implements CommonEnum<String> {
	未删除(0, "未删除"), 
	已删除(1, "已删除");

	@ApiModelProperty(value = "key",example = "0")
	private Integer key;

	@ApiModelProperty("描述")
	private String desc;

	IsDelEnum(Integer key, String desc) {
		this.key = key;
		this.desc = desc;
	}

	@Override
	public Integer getValue() {
		return this.key;
	}

	@Override
	public String getName() {
		return this.name();
	}
}